#include "calibrationmicrodisplayform.h"
#include "ui_calibrationmicrodisplayform.h"
#include <QPainter>
#include <QStyleOption>

CalibrationMicrodisplayForm::CalibrationMicrodisplayForm(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::CalibrationMicrodisplayForm)
{
    ui->setupUi(this);
    this->setFixedHeight(80);
    this->setProperty("form","backgroundform");
    ui->leftBorderForm->SetLabelIcon("microdisplayform");
    ui->leftBorderForm->UpdateShowType(3);
}

CalibrationMicrodisplayForm::~CalibrationMicrodisplayForm()
{
    delete ui;
}

void CalibrationMicrodisplayForm::paintEvent(QPaintEvent *event)
{
    QStyleOption opt;
    opt.init(this);
    QPainter painter(this);
    style()->drawPrimitive(QStyle::PE_Widget,&opt,&painter,this);
    QWidget::paintEvent(event);
}
